package com.gouqi.mall.mapper;

import com.gouqi.mall.domain.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface PersonMapper {
    List<Person> getAllPersons();
    List<Person> getPersonsByName(String name);
    List<Person> getPagePersons(Map<String,Object> map);
    List<Person> getPagePersons(@Param("name") String name,@Param("pageIndex") Integer pageIndex);
}
